package com.example.sxmall.dao.pojo;

import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhang
 * @since 2022-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Permission extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 角色ID自增
     */
    @TableId(value = "perid", type = IdType.AUTO)
    private Integer perid;

    /**
     * 角色名称
     */
    @NotBlank(message = "权限等级名称不能为空")
    private String pername;

    /**
     * 编码
     */
    @NotBlank(message = "权限等级不能为空")
    private String percode;

    /**
     * 权限说明(可不填)
     */
    private String peremarks;

    /**
     * 状态
     */
    private Integer perstatu;

    @TableField(exist = false)
    private List<Integer> pcid = new ArrayList<>();

}